if(KindEditor!=undefined){
	KindEditor.plugin('file_source', function(K) {
			var editor = this, name = 'file_source';
			editor.plugin.file_source = {
				call: function(){
					call_upload({
						dataType: "json",
						uploadToFileServer:true,
						uploadSize: "source",
						callback : function(data){
							var img_str='';
							for(var i=0;i<data.length;i++){
								var file_info = data[i].file_info;
								img_str+='<img src="'+file_info.url+'">';
							
							}
							editor.insertHtml(img_str);
						}
					});
				}
			};

			// 点击图标时执行
			editor.clickToolbar(name, editor.plugin.file_source.call);
	});
}